package com.hospital.workstation.service;

import com.hospital.workstation.domain.MedicalRecord;
import com.hospital.workstation.domain.vo.MedicalRecordVo;
import com.hospital.workstation.domain.bo.MedicalRecordBo;
import com.hospital.common.core.page.TableDataInfo;
import com.hospital.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 药历用药汇总Service接口
 *
 * @author whb
 * @date 2023-02-13
 */
public interface IMedicalRecordService {

    /**
     * 查询药历用药汇总
     */
    MedicalRecordVo queryById(Long id);

    /**
     * 查询药历用药汇总列表
     */
    TableDataInfo<MedicalRecordVo> queryPageList(MedicalRecordBo bo, PageQuery pageQuery);

    /**
     * 查询药历用药汇总列表
     */
    List<MedicalRecordVo> queryList(MedicalRecordBo bo);

    /**
     * 新增药历用药汇总
     */
    Boolean insertByBo(MedicalRecordBo bo);

    /**
     * 修改药历用药汇总
     */
    Boolean updateByBo(MedicalRecordBo bo);

    /**
     * 校验并批量删除药历用药汇总信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
